<include file="Public:header" />
<div class="ncenter_box">
<div class="accounttitle"><h1>加单管理</h1></div>
<script language=javascript src="__PUBLIC__/Js/wpCalendar.js"></script>

    <!--<link href="__PUBLIC__/Css/bootstrap.min14ed.css" rel="stylesheet" media="all" type="text/css" />-->
    <script src="__PUBLIC__/Js/jquery-1.11.3.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/layui/build/css/layui.css">
    <script src="__PUBLIC__/layui/build/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layui.mobile.css">
    <link href="__PUBLIC__/Css/bootstrap.min14ed.css" rel="stylesheet" media="all" type="text/css" />
    <script src="__PUBLIC__/Js/jquery-1.11.3.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/layui/build/css/layui.css">
    <script src="__PUBLIC__/layui/build/layui.js" charset="utf-8"></script>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layui.mobile.css">

<script language="JavaScript">
ifcheck = true;
function CheckAll(form)
{
	for (var i=0;i<form.elements.length-2;i++)
	{
		var e = form.elements[i];
		e.checked = ifcheck;
	}
	ifcheck = ifcheck == true ? false : true;
}
</script>

<style>
.accounttitle{padding:0;}
.ncenter_box{padding:0;}
.btn1{float: left;margin-left:3px;}
.laydate_box{left: 10px !important;}
</style>

<table class="tab3" border="0" cellpadding="3" id="tb1" cellspacing="1" bgcolor="#b9c8d0">
 <tr align="center">
     <th nowrap><span></span></th>
	<th><span>会员编号</span></th>
	<th><span>晋升前级别</span></th>
	<!--<th><span>晋升后级别</span></th>-->
    <th><span>加单金额</span></th>
    <th><span>申请时间</span></th>
    <th><span>确认时间</span></th>
    <th  ><span>状态</span></th>
</tr>
<form name="form3" method="post" action="__URL__/adminUserUpAddAC">
<volist name="list" id="vo">
    <tr class="content_td lz" align="center">
        <td><input type="checkbox" name="tabledb[]" value="{$vo['id']}" /></td>
        <td>{$vo['user_id']}</td>
        <td>{$s9[$vo['u_level'] - 1]}</td>
        <!--<td>{$s9[$vo['up_level'] - 1]}</td>-->
        <td>{$vo['money']}</td>
        <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
        <td><eq name="vo.pdt" value="0"> 未确认<else/>{$vo.pdt|date='Y-m-d H:i:s',###}</eq></td>
        <td>
            <eq name="vo['is_pay']" value="0"><span style="color: #FF3300;">未确认</span></eq>
            <eq name="vo['is_pay']" value="1">已确认</eq>
        </td>
    </tr>
    </volist>
<tr>
	<td colspan="8">
       <input name="全选" type="button" class="btn1" id="全选" onclick="CheckAll(this.form)" value="全选" />	 
	   <input type="submit" name="action" value="确认加单" class="btn1" onclick="{if(confirm('确定要确认当前加单吗?')){return true;}return false;}">
	   <input type="submit" name="action" value="删除" class="btn1" onclick="{if(confirm('确定要删除吗?')){return true;}return false;}">
      </form>
    </td>
</tr>
<tr align="center">
	<td colspan="4" align="center">
		<form method='post' action="__URL__/adminUserUpAdd/">搜索会员：
            <input style="border:1px solid #ccc" type="text" name="UserID" title="帐号查询">
            <input style="margin-top:5px;" type="submit" name="Submit" value="查询"  class="btn1"/><br>
        </form>
	</td>
	<td colspan="3">{$page}

        <form style="margin-top:5px;" method='get' action="">
            第<input name="p" style="width: 50px;border:1px solid #cccc;padding-left:2px;" type="number">页
            <button style="width: 50px;border:none;background:#1296db;color: white;border-radius: 3px; ">跳转</button>
        </form>

    </td>
</tr>
    <tr align="center">

        <form method='post' >
            <div style="margin: 0 auto;">

                <!--<div class="infoA">
                    <p>搜索会员：</p>
                    <input name="UserID" type="text" id="UserID" title="帐号查询" maxlength="50" >
                </div>
                <div style="clear: both"></div>-->
            </div>
        </form>
    </tr>
</table>
</div>
 <div style="margin-top: 20px;" class="form-group" id="data_5">
                    <!--<label class="font-noraml"> 开通时间</label>-->
                    <div class="input-daterange input-group" id="datepicker">

                        <input type="text" class="form-control" name="time1" id="time1"
                               placeholder="开通的开始日期" value="<notempty name='time1'>{$time1}</notempty>">
                        <span class="input-group-addon">到</span>
                        <input type="text" class="form-control" name="time2" id="time2"
                               placeholder="截止日期" value="<notempty name='time2'>{$time2}</notempty>">
                    </div>
                </div>
                <div style="margin-bottom: 20px;text-align:center;" class="chaxun">
                    <input style="width: 50px;background:#1296db;color: white" type="submit" name="Submit" value="查询" class="bt_tj"  />
                </div>
</body>
</html>
<include file="Public:footer" />

<script>new TableSorter("tb1");</script>

<script type="text/javascript">
    layui.use('laydate', function(){
        var laydate = layui.laydate;
        var start = {
            // min: laydate.now(-2)
            max: '2099-06-16 23:59:59'
            ,istoday: false
            ,choose: function(datas){
                end.min = datas; //开始日选好后，重置结束日的最小日期
                end.start = datas //将结束日的初始值设定为开始日
            }
        };

        var end = {
            min: laydate.now()
            ,max: '2099-06-16 23:59:59'
            ,istoday: false
            ,choose: function(datas){
                start.max = datas; //结束日选好后，重置开始日的最大日期
            }
        };

        $('#time1').on('click',function(){
            start.elem = this;
            laydate(start);
        });
        $('#time2').on('click',function(){
            end.elem = this
            laydate(end);
        });
    });
</script>